﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
   public class PhieuThueBUS
    {
       public int ThemPhieuThue(PhieuThueDTO Phieu)
       {
           PhieuThueDAO dao = new PhieuThueDAO();
           return dao.ThemPhieuThue(Phieu);

       }
       public int LayPhieuThueMaxTheoPhong(string maphong)
       {
           PhieuThueDAO dao = new PhieuThueDAO();
           return dao.LayPhieuThueMaxTheoPhong(maphong);
       }
       public PhieuThueChiTietDTO GetInfoChuaThanhToan(int maphong, int tinhtrang)
       {
           PhieuThueDAO dao = new PhieuThueDAO();
           return dao.GetInforChuaThanhToan(maphong, tinhtrang);
       }
       public DataTable LayThongTinPhieuThue(int maphieu)
       {
           PhieuThueDAO dao = new PhieuThueDAO();
           return dao.LayThongTinPhieuThue(maphieu);
       }
    }
}
